package com.bdqn.crm.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.crm.pojo.Right;
import com.bdqn.crm.pojo.Role;
import com.bdqn.crm.pojo.User;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
    public List<Role> findAllRoles();
    public List<Right>finAllRights();
    public List<Right> findRightsByRole(Role role);
    public Role saveRole(Role role);
    public void deleteRoleById(Long roleId);
    public void deleteRole(Role role);
    public Role getRole(Long roleId);
    public Page<Role>findRole(String roleName, Pageable pageable);
    public Role findRoleByUser(User user);
    public void reloadFilterChainDefinitions();
    Map<String, String> loadFilterChainDefinitions();
}
